# import os
# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'aijia_zufang.settings.dev')

from celery import Celery

celery_app = Celery('aijia_zufang')

celery_app.config_from_object('celery_tasks.config')


# 让 celery_app 自动捕获目标地址下的任务:
# 就是自动捕获 tasks
celery_app.autodiscover_tasks(['celery_tasks.sms'])